import { connect } from 'react-redux'

import { actions } from '../modules/articleDetailed'
import { setTitle } from 'reducers/common'
import ArticleDetailed from '../components/ArticleDetailed'

const mapActionCreators = {
  ...actions,
  setTitle
}

const mapStateToProps = (state) => ({
  articleDetailed: state.articleDetailed,
  user: state.user
})

export default connect(mapStateToProps, mapActionCreators)(ArticleDetailed)
